package com.idol.pojo;

import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

/**
 * @author SupremeSir
 * @description
 * @className Resume
 * @date 2021/3/18 0:15
 **/
@Document(collection = "sir")
public class Resume {
    //主键id，映射_id
    @Id
    private String id;
    //姓名
    private String name;
    //年龄
    private int age;
    //工资
    private double expectSalary;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public double getExpectSalary() {
        return expectSalary;
    }

    public void setExpectSalary(double expectSalary) {
        this.expectSalary = expectSalary;
    }

    @Override
    public String toString() {
        return "Resume{" +
                "id='" + id + '\'' +
                ", name='" + name + '\'' +
                ", age=" + age +
                ", expectSalary=" + expectSalary +
                '}';
    }
}
